#!/bin/bash

if [ $# -eq 0 ] ; then
        exit -1
fi

if [ $# -eq 1 ] ; then
        HOST="localhost"
else
        HOST=$1
        shift
fi

while [ $# -gt 0 ] ; do
        snmpgetnext -mALL -v1 -Os -cpublic $HOST $1
        shift
done
exit 0
